#pragma once
#include "service\storage\file\BaseFileService.h"
#include "lib\TCollection.h"

class BaseModel;
class Sport;

class SportFileService : public BaseFileService {
public:
  SportFileService();
  SportFileService(const std::string fname,
                   const std::ios::openmode=std::ios::out|std::ios::in);
  SportFileService(std::fstream& file);
  virtual ~SportFileService();
  virtual BaseFileService& Load(Sport* sport);
  BaseFileService& LoadFile(TCollection<Sport> *sports);
  virtual BaseFileService& Save(const Sport& sport);
  BaseFileService& SaveFile(const TCollection<Sport> *sports);
};